<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Vue3 Demo</title>
        <script src="https://unpkg.com/vue@3.5.13"></script>
    </head>
    <body>
        <div id="Application">
            <h1 v-bind:[prop]="name" v-if="show">标题</h1>
        </div>

        <script>
            const Application = {
                // 数据
                data() {
                    return {
                        show: true,
                        prop: "class",
                        name: "h1"
                    }
                }
            }
            // 创建应用,挂载到id为Application的元素上
            Vue.createApp(Application).mount('#Application')
        </script>

    </body>
</html>